﻿@using LdCms.Model.Comment
@using LdCms.Common.Extension
@using LdCms.Common.Enum;
@using LdCms.Common.Utility
@using LdCms.Common.Json;
@model ServiceComment
@{
    ViewData["Title"] = "Show";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<article class="page-container bg-eee" style="min-height:775px;">
    <div class="cl pd-20 bg-fff" style="min-height:735px;">
        <div class="tabBar cl clearfix">
            <span>基本信息</span>
        </div>
        <div class="pd-15">
            <div style="height:32px;line-height:32px;">评价信息：</div>
            <table class="table table-border table-bordered table-hover table-bg table-sort">
                <tbody>
                    <tr>
                        <td class="text-r" style="background-color:#f5fafe;" width="200">会员编号：</td>
                        <td class="text-l" width="" colspan="3">@Model.MemberID</td>
                    </tr>
                    <tr>
                        <td class="text-r" style="background-color:#f5fafe;" width="200">订单编号：</td>
                        <td class="text-l" width="" colspan="3">@Model.OrderID</td>
                    </tr>
                    <tr>
                        <td class="text-r" style="background-color:#f5fafe;" width="200">服务评价：</td>
                        <td class="text-l" width="">@(EnumHelper.GetName<ParamEnum.CommentServiceStatus>(Model.ServiceStatus.ToInt()))</td>
                        <td class="text-r" style="background-color:#f5fafe;" width="200">服务分数：</td>
                        <td class="text-l" width="">@Model.ServicePoints</td>
                    </tr>
                    <tr>
                        <td class="text-r" style="background-color:#f5fafe;" width="200">有用：</td>
                        <td class="text-l" width="">@Model.UpNum</td>
                        <td class="text-r" style="background-color:#f5fafe;" width="200">无用：</td>
                        <td class="text-l" width="">@Model.DownNum</td>
                    </tr>
                    <tr>
                        <td class="text-r" style="background-color:#f5fafe;" width="200">图片：</td>
                        <td class="text-l" width="" colspan="3">
                            @if (string.IsNullOrWhiteSpace(Model.Images))
                            {
                                foreach (var m in Model.Images.ToObject<List<string>>())
                                {
                                    <img src="@m" width="100" height="100" />
                                }
                            }
                        </td>
                    </tr>
                    <tr>
                        <td class="text-r" style="background-color:#f5fafe;" width="200">备注：</td>
                        <td class="text-l" width="" colspan="3">@Model.Description</td>
                    </tr>
                    <tr>
                        <td class="text-r" style="background-color:#f5fafe;" width="200">创建时间：</td>
                        <td class="text-l" width="" colspan="3">@(Model.CreateDate.HasValue ? Model.CreateDate.Value.ToString("yyyy-MM-dd HH:mm") : "-")</td>
                    </tr>
                </tbody>
            </table>
            <div style="height:32px;line-height:32px;">追评列表：</div>
            <table class="table table-border table-bordered table-hover table-bg table-sort">
                <thead>
                    <tr class="text-l">
                        <th width="">追评</th>
                    </tr>
                </thead>
                <tbody>
                    @if (Model.Details.Count > 0)
                    {
                        foreach (var m in Model.Details)
                        {
                            <tr class="text-c">
                                <td class="text-l">
                                    <div>时间：@m.CreateDate.Value.ToString("yyyy-MM-dd HH:mm")</div>
                                    <div>
                                        @foreach (var n in m.Images.ToObject<List<string>>())
                                        {
                                            <img src="@n" width="100" height="100" />
                                        }
                                    </div>
                                    <div> @m.Description</div>
                                </td>
                            </tr>
                        }
                    }
                    else
                    {
                        <tr class="text-c">
                            <td colspan="8">暂无无记录！</td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
</article>

